class BooksHistoryController < ApplicationController
  def index
    @user = current_user
    @categories = Category.all

    @books = Kaminari.paginate_array(@user.borrow_items).page(params[:page]).per(2)
    @hot_books = Book.search_hot_book()    
  end
end
